package com.ketai.service;

import com.ketai.common.KetaiException;
import com.ketai.pojo.CActivity;
import com.ketai.query.ActivitesQuery;
import com.ketai.util.Pages;
import com.ketai.vo.ActivityVo;

import javax.naming.NamingException;
import java.sql.SQLException;
import java.util.List;

/**
 * @Author:长沙科泰梦想学院-蓝色小药丸
 * @Mission:打造演说·创客型跨境电商与互联网人才
 * @Description:
 * @Date:Create In 2022/8/4 22:19
 **/
public interface ActivityService {

    Pages<ActivityVo> getAllActivities (ActivitesQuery query);
    Pages<ActivityVo> getAllEndActivities (ActivitesQuery query);
    ActivityVo getActivityById (String id);
    int addActivity(CActivity activity) throws KetaiException;

    int deleteActivityById(String id);

    int  editActivity(CActivity activity);

    int checkedActity(String id,String open,String desc,String checkedId);
}
